package virtPresenter.model
{
	import flash.display.Sprite;
	import flash.display.BitmapData;
	import flash.utils.ByteArray;
	import flash.net.FileReference;
	
	import mx.graphics.codec.JPEGEncoder;

	public class datenschubser
	{
		
		private var sprite:Sprite = new Sprite();
		
		public function datenschubser()
		{
		}
		
		public function convertSlides():void{
			sprite = FisheyeWindow.getInstance().getMiddleSprite();
			sprite.visible = true;
			var snapshot:BitmapData = new BitmapData(AS_Constants.WIDTH_PREVIEW_MIDDLE-5,100,false);
			snapshot.draw(sprite);
			var enc:JPEGEncoder = new JPEGEncoder(50);
			var data:ByteArray = enc.encode(snapshot);
			var bla:FileReference = new FileReference();
			bla.save(data);
		}
	}
}